package com.adderis.soft.domain.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author Reda
 * @version 1.0
 * @created 20-avr.-2014 22:47:44
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "soustype", catalog = "adderis")
public class Soustype implements java.io.Serializable {

	private int sousTypeId;
	private String sousType;
	private Integer familleId;
	private Date createtimestamp;
	private String statutcode;
	private Date updatetimesstamp;
	private Date deletiontimesstamp;

	public Soustype() {
	}

	public Soustype(int sousTypeId) {
		this.sousTypeId = sousTypeId;
	}

	public Soustype(int sousTypeId, String sousType, Integer familleId) {
		this.sousTypeId = sousTypeId;
		this.sousType = sousType;
		this.familleId = familleId;
	}

	@Id
	@Column(name = "sousTypeID", unique = true, nullable = false)
	public int getSousTypeId() {
		return this.sousTypeId;
	}

	public void setSousTypeId(int sousTypeId) {
		this.sousTypeId = sousTypeId;
	}

	@Column(name = "SousType", length = 100)
	public String getSousType() {
		return this.sousType;
	}

	public void setSousType(String sousType) {
		this.sousType = sousType;
	}

	@Column(name = "familleID")
	public Integer getFamilleId() {
		return this.familleId;
	}

	public void setFamilleId(Integer familleId) {
		this.familleId = familleId;
	}

	@Column(name = "createdatetime")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCreatetimestamp() {
		return createtimestamp;
	}

	public void setCreatetimestamp(Date createtimestamp) {
		this.createtimestamp = createtimestamp;
	}

	@Column(name = "statutcode", length = 10)
	public String getStatutcode() {
		return statutcode;
	}

	public void setStatutcode(String statutcode) {
		this.statutcode = statutcode;
	}

	@Column(name = "updatedatetime")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getUpdatetimesstamp() {
		return updatetimesstamp;
	}

	public void setUpdatetimesstamp(Date updatetimesstamp) {
		this.updatetimesstamp = updatetimesstamp;
	}

	@Column(name = "deletiondatetime")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getDeletiontimesstamp() {
		return deletiontimesstamp;
	}

	public void setDeletiontimesstamp(Date deletiontimesstamp) {
		this.deletiontimesstamp = deletiontimesstamp;
	}

}
